package org.demo.honor.fake;

import org.demo.honor.integration.dto.PaymentDTO;
import org.demo.honor.integration.dto.PaymentOrderDTO;
import org.demo.honor.integration.payment.PaymentServiceFeignClient;
import org.demo.honor.repository.OrderRepository;

public class FakePaymentServiceFeignClient implements PaymentServiceFeignClient {
    @Override
    public PaymentDTO createPayment(PaymentOrderDTO paymentOrderDTO) {
        PaymentDTO fakePaymentDTO = new PaymentDTO();
        fakePaymentDTO.setId("p-1001-123");
        fakePaymentDTO.setOrderId(111);

        return fakePaymentDTO;
    }

    @Override
    public PaymentDTO queryPaymentStatus(String paymentId) {
        PaymentDTO fakePaymentDTO = new PaymentDTO();
        fakePaymentDTO.setId(paymentId);
        fakePaymentDTO.setOrderId(111);

        return fakePaymentDTO;
    }
}
